for i in range(100,1000):
    a=(i%10)**3+((i//10)%10)**3+(i//100)**3
    if a==i:
        print('水仙花数为:',a)